package cn.tedu.cn.tedu;

import java.math.BigDecimal;
import java.util.Scanner;

public class Test_05 {
    public static void main(String[] args) {
            method();
    }
    public static void method(){
        double a=new Scanner(System.in).nextDouble();
        double b=new Scanner(System.in).nextDouble()  ;
        BigDecimal bd1=new  BigDecimal(a);
        BigDecimal bd2=new  BigDecimal(b);
        BigDecimal bd3=bd1.add(bd2);
        System.out.println(bd3);
        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println(a/b);

    }
}
